package com.yilin.tms.core.entity.user.hatch;



import com.baomidou.mybatisplus.annotation.TableName;
import com.yilin.tms.core.commons.base.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * 整单计价 价格配置类
 */
@Entity
@Table(name = "hatch_pricing_rule_item")
@TableName("hatch_pricing_rule_item")
public class HatchPricingRuleItem extends BaseEntity {
    @Column(name = "pricing_rule_id")
    private String pricingRuleId;//规则表
    @Column(name = "start_distance")
    private Double startDistance;//开始距离
    @Column(name = "end_distance")
    private Double endDistance;//结束距离
    @Column(name = "is_unit")
    private Boolean isUnit;//计价方式，true 单价

    @Column(name = "price")
    private double price;//固定价格
    @Column(name = "price_unit ")
    private double priceUnit;//每公里单价

    @Column(name = "end_no_limited")
    private Boolean endNoLimited;//为true 代表最后一条
    @Column(name = "disabled")
    private Boolean disabled;//一般除最后一条均不可标记

    @Column(name = "configure_level")
    private Integer configureLevel;//排序级别

    public Boolean getIsUnit() {
        return isUnit;
    }

    public void setIsUnit(Boolean unit) {
        isUnit = unit;
    }

    public Boolean getEndNoLimited() {
        return endNoLimited;
    }

    public void setEndNoLimited(Boolean endNoLimited) {
        this.endNoLimited = endNoLimited;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    public Integer getConfigureLevel() {
        return configureLevel;
    }

    public void setConfigureLevel(Integer configureLevel) {
        this.configureLevel = configureLevel;
    }

    public String getPricingRuleId() {
        return pricingRuleId;
    }

    public void setPricingRuleId(String pricingRuleId) {
        this.pricingRuleId = pricingRuleId;
    }

    public Double getStartDistance() {
        return startDistance;
    }

    public void setStartDistance(Double startDistance) {
        this.startDistance = startDistance;
    }

    public Double getEndDistance() {
        return endDistance;
    }

    public void setEndDistance(Double endDistance) {
        this.endDistance = endDistance;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getPriceUnit() {
        return priceUnit;
    }

    public void setPriceUnit(double priceUnit) {
        this.priceUnit = priceUnit;
    }

    public void setPriceUnit(float priceUnit) {
        this.priceUnit = priceUnit;
    }


}
